#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main()
{
    int i = 0;
    int n = 0;
    int ret = 0;
    int w = 0;
    scanf("%d",&n);
    while (n)
    {
        w = n % 10;
        if (0 == (w % 2))
        {
            w = 0;
        }
        else
        {
            w = 1;
        }
        ret += w * pow(10,i++);
        n /= 10;
    }
    printf("%d",ret);
    return 0;
}

